home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJDEV200.ZIP / include / sys / resource.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-20  |  1.5 KB  |  53 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_sys_resource_h_
  3. #define __dj_include_sys_resource_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #ifndef _POSIX_SOURCE
  14.  
  15. #include <time.h>
  16.  
  17. #define RUSAGE_SELF     0               /* calling process */
  18. #define RUSAGE_CHILDREN -1              /* terminated child processes */
  19.  
  20. struct rusage {
  21.   struct timeval ru_utime;    /* user time used */
  22.   struct timeval ru_stime;    /* system time used */
  23.   long ru_maxrss;        /* integral max resident set size */
  24.   long ru_ixrss;        /* integral shared text memory size */
  25.   long ru_idrss;        /* integral unshared data size */
  26.   long ru_isrss;        /* integral unshared stack size */
  27.   long ru_minflt;        /* page reclaims */
  28.   long ru_majflt;        /* page faults */
  29.   long ru_nswap;        /* swaps */
  30.   long ru_inblock;        /* block input operations */
  31.   long ru_oublock;        /* block output operations */
  32.   long ru_msgsnd;        /* messages sent */
  33.   long ru_msgrcv;        /* messages received */
  34.   long ru_nsignals;        /* signals received */
  35.   long ru_nvcsw;        /* voluntary context switches */
  36.   long ru_nivcsw;        /* involuntary context switches */
  37. };
  38.  
  39. int getrusage(int _who, struct rusage *_rusage);
  40.  
  41. #endif /* !_POSIX_SOURCE */
  42. #endif /* !__STRICT_ANSI__ */
  43. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  44.  
  45. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  46. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  47.  
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51.  
  52. #endif /* !__dj_include_sys_resource_h_ */
  53.